﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VoltGameEditor
{
    public partial class keymap : Form
    {
        public keymap()
        {
            InitializeComponent();
        }

		public enum ButtonType
		{
			Mouse,
			Keyboard
		}
		public ButtonType butType;

        private void keymap_KeyDown(object sender, KeyEventArgs e)
        {
			SettingsDiag.kea = null;
			butType = ButtonType.Keyboard;
			if (e.KeyCode != Keys.Escape)
				SettingsDiag.kea = e;
			this.Close();
        }

		private void keymap_MouseClick(object sender, MouseEventArgs e)
		{
			SettingsDiag.mea = null;
			butType = ButtonType.Mouse;
			SettingsDiag.mea = e;
			this.Close();
		}
    }
}
